package cn.aiszs.javafx_imp.mapper;

import cn.aiszs.javafx_imp.pojo.Ip;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface IPMapper  extends BaseMapper<Ip> {
    @Select("select * from ip where ip_ip = #{ip}")
    Ip findIp(@Param("ip") String ip);

    @Select("insert into ip(ip_ip,ip_address,ip_updatetime) value(#{ipIp},#{ipAddress},now())")
    Integer insertOne(Ip ip);
}
